//
//  main.m
//  Chapter3
//
//  Created by 郭家正 on 2019/1/10.
//  Copyright © 2019 TM. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Passat.h"
#import "Magotan.h"

int main(int argc, const char * argv[]) {
    Passat *passat1 = [[Passat alloc] init];
    passat1.name = @"帕萨特1号";
    
    Magotan *magotan1 = [[Magotan alloc]init];
//    magotan1.name = @"迈腾1号";
    
    [passat1 passatSayHello];
    [magotan1 magotanSayHello];
    
    NSLog(@"帕萨特：%@",passat1);
    NSLog(@"迈腾:%@",magotan1);
    
    Passat *passat2 = [[Passat alloc]initWithName:@"帕萨特2号" color:@"黑色" engine:@"250马力" price:203000];
    NSLog(@"%@",passat2);
    
    Passat *passat3 = [[Passat alloc]initWithName:@"帕萨特3" color:@"红色" engine:@"175马力" price:190000 tel:@"19928333434"];
    NSLog(@"%@",passat3);
    
    return 0;
}
